From: Owen Taylor Date: Fri, 7 Nov 2008 17:14:26 +0000 (+0000) Subject: Make clicking on windows in the overlay activate the windows X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11605 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ac6ff950407879e3b3276e9930ed1f960e699119;p=gnome-shell.git Make clicking on windows in the overlay activate the windows Hook up activating windows in the overlay now that we have MetaWindow GObject'ified and exposed to gobject-introspection. svn path=/trunk/; revision=35 --- diff --git a/js/ui/overlay.js b/js/ui/overlay.js index 85176520e..c0a3d6f06 100644 --- a/js/ui/overlay.js +++ b/js/ui/overlay.js @@ -200,14 +200,14 @@ Overlay.prototype = { let me = this; clone.connect("button-press-event", - function() { - me._activateWindow(w); + function(clone, event) { + me._activateWindow(w, event.get_time()); }); }, - _activateWindow : function(w) { + _activateWindow : function(w, time) { this._deactivate(); - log("Activate "+ w.get_description()); + w.get_meta_window().activate(time); }, _deactivate : function() {